from pygame.time import Clock

class FPS:
    def __init__(self, ai_settings):
        self._clock = Clock()
        self._fps = ai_settings.fps
    
    def tick(self):
        return self._clock.tick(self._fps)
    
    def get_fps(self):
        return self._clock.get_fps()